<?php

namespace frontend\modules\yii2\controllers;

use yii\helpers\Url;
use yii\web\Controller;

/**
 * Default controller for the `yii2` module
 */
class SiteController extends Controller
{
    public $layout = 'main-yii';

    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex()
    {
        return $this->render('index');
    }

    public function actionHome()
    {
        //$this->layout = 'main-home';
        return $this->render('home');
    }

    public function actionContact()
    {
        $this->layout = 'main-yii';
        return $this->render('contact');
    }

    public function actionRemove()
    {
        exit('remove');
    }
}
